if(editor.quoteTag) {
    showEvent();
}
function showEvent() {
    $G('number').innerHTML = editor.quoteTag.innerHTML;
    $G('quote').value = editor.quoteTag.getAttribute('data-quote');
    setTimeout(function () {
        $G('quote').focus();
    });
}

dialog.onok = function () {
    var quoteInfo = $G('quote').value;
    if (quoteInfo !== editor.quoteTag.getAttribute('data-quote')) {
        editor.quoteTag.setAttribute('data-quote', quoteInfo);
        editor.fireEvent('quoteChange');
    }
    return this.oncancel();
}

dialog.oncancel = function () {
    this._hide();
    this.autoReset = false;
    editor.quoteNum = undefined;
    editor.quoteInfo = undefined;
    return false;
}

dialog.addListener('show', showEvent);